function mark_reader(user_id, assignment_id){
	var url = 'type/seniorproject/mark_reader.php?user_id='+user_id+'&assignment_id='+assignment_id;
	var AjaxObject = {
		handleSuccess:function(o){
			document.getElementById('reader-'+user_id).innerHTML = o.responseText;
		},

		handleFailure:function(o){
			alert('Was not able to process due to error: '+o.error);
		},

		startRequest:function(){
			YAHOO.util.Connect.asyncRequest('GET', url, callback, null);
		}
	};

	var callback = {
		success:AjaxObject.handleSuccess,
		failure:AjaxObject.handleFailure,
		scope:AjaxObject
	};

	AjaxObject.startRequest();
}

function mark_registrar(user_id, assignment_id){
	var url = 'mark_reader.php?user_id='+user_id+'&assignment_id='+assignment_id;
	var AjaxObject = {
		handleSuccess:function(o){
			document.getElementById('reader-'+user_id).innerHTML = o.responseText;
		},

		handleFailure:function(o){
			alert('Was not able to process due to error: '+o.error);
		},

		startRequest:function(){
			YAHOO.util.Connect.asyncRequest('GET', url, callback, null);
		}
	};

	var callback = {
		success:AjaxObject.handleSuccess,
		failure:AjaxObject.handleFailure,
		scope:AjaxObject
	};

	AjaxObject.startRequest();
}
